package com.ycrlkj.android.modulescore.main.entity;

import lombok.Data;
import java.io.Serializable;

@Data
public class FreightOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    private Integer type; //订单类型: 1=>本系统内下单, 2=>系统外下单(非本系统内注册货主直接联系货车司机运货的)


    private String goodsTypeId;
    private String goodsTypeIdText;

    private Integer goodsCount;

    private Integer goodsCountUnit; //1, 2, 3
    private String goodsCountUnitText; //头/只/千克

    private String goodsList; //货物清单(动物耳标数组)

    private String remarks; //订单备注

    private String consignorId; //货主id

    private String consignorName; //货主名, 非本项目内货运下单的洗消订单, 需要司机填写本次运输的信息, 货主非本系统内已登录人员, 所以需要填写用户名和电话

    private String consignorPhone; //货主名, 非本项目内货运下单的洗消订单, 需要司机填写本次运输的信息, 货主非本系统内已登录人员, 所以需要填写用户名和电话

    private String driverId;

    private String vehicleId;
    private String vehiclePlateNum;
    private Integer vehiclePlateColor;

    private String payId;

    private String insuranceId; //投保单号

    private Integer orderStatus;
    private String orderStatusText; //状态: 1=>正常, 2=>货主关闭, 3=>司机关闭, 4=>异常

    private String byId; //录入人id, user_id谁写入的此条记录

    private Integer needXx; //是否洗消: 0=>否, 1=>是

    private String consigneeName; //收货人姓名

    private String consigneePhone; //收货人电话

    private String createTime;

    private String updateTime;


    private String startProvince;

    private String startCity;

    private String startDistrict;

    private String startAddress;

    private Double startLat;

    private Double startLng;

    private String endProvince;

    private String endCity;

    private String endDistrict;

    private String endAddress;

    private Double endLat;

    private Double endLng;


    private Integer demandVehicleSpecification; //要求车型
    private String demandVehicleSpecificationText; //要求车型名


    private Integer predictPrice; //预估价格

    private Integer transactionPrice; //成交价格

    private String deliveryTime; //货主下单预定送货时间

    private String lockTime; //协商一致锁单时间

    private Double locationDistance;

    private Integer consignmentDistance; //运输里程

}

